home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 715 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  997 b 

  1. Path: www.gnofn.org!not-for-mail
  2. From: clm01@www.gnofn.org (Christopher L Mayeux)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: What is '?' in C mean....?????
  5. Date: 4 Jan 1996 21:19:07 -0600
  6. Organization: Greater New Orleans Free-Net
  7. Message-ID: <4ci5bb$8m4@www.gnofn.org>
  8. References: <4cgsa8$bm2@wumpus.cc.uow.edu.au> <fcusack-0401961115540001@mudskipper.cac.psu.edu>
  9. NNTP-Posting-Host: www.gnofn.org
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12.  frank. (fcusack@tdx.org) wrote:
  13. : > Could anyone here explain to me what is "?" means and what the purpose
  14. : of using
  15. :
  16. : ? : is C's ternary operator. if the condition is met, perform the
  17. : operation after the ?; if the condition is not met, perform the operation
  18. : after the :
  19. :
  20.  
  21. What new perversion of C is that ???
  22.  
  23. I've been programming in standard C for 12 years, and
  24. never saw THAT in the manuals.
  25. -- 
  26. ------------------------------------------------------------------------------
  27. C.L. Mayeux - Owner, MSB Video <clm01@gnofn.org> - Affordable consumer videos.
  28.